﻿using prufa.Migrations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using prufa.Models;

namespace prufa.Controllers
{
    public class GameController : Controller
    {
        //
        // GET: /Game/

        public ActionResult Index()
        {
            return View();
        }

        public ActionResult MyGames()
        {
            Migrations.GameDAL dal = new Migrations.GameDAL();
            Models.Game game = new Models.Game();
            game.game = dal.GetGame();
            return View("Index", game);
        }

        public JsonResult GetGameById(string id)
        {
            int ID = Int32.Parse(id);
            Migrations.GameDAL dal = new Migrations.GameDAL();
            GameInstance game = dal.GetGameByID(ID);
            return Json(game, JsonRequestBehavior.AllowGet);
        }

        public ActionResult Categories()
        {
            return View();
        }

        public ActionResult MyFriends()
        {
            return View();
        }

        public ActionResult AddGameInstance()
        {
            return View();
        }

        public ActionResult AddGame()
        {
            return View();
        }

        public ActionResult ActiveGames()
        {
            return View();
        }

    }
}
